<template>
    <el-form-item label="标签名称" prop="name">
        <el-input v-model="optionModel.name"/>
    </el-form-item>
</template>

<script setup>
import { reactive } from 'vue';

defineOptions({
    name:"name-editor"
})
const props = defineProps({
    optionModel:{
        type:Object,
        default:()=>({})
    },
    designer:{
        type:Object,
        default:()=>({})
    }
})

const state = reactive({
    rule:[
        {
            required: true,
            message: '请输入标签名称',
            trigger: 'blur'
        }
    ]
})
</script>

<style lang='scss' scoped></style>